package com.jintian.smart.kernel.message.provider;

import com.jintian.smart.base.api.message.constant.MailTemplateCodeEnum;
import com.jintian.smart.base.api.message.provider.IMailProvider;
import com.jintian.smart.kernel.core.domain.ResponseDTO;
import com.jintian.smart.kernel.message.service.MailService;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;
import java.util.Map;

@DubboService(timeout = 6000)
public class MailProvider implements IMailProvider {
    public MailService mailService;

    @Override
    public ResponseDTO<String> sendMail(MailTemplateCodeEnum templateCode, Map<String, Object> templateParamsMap, List<String> receiverUserList) {
        return mailService.sendMail(templateCode, templateParamsMap, receiverUserList);
    }
}
